<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta name="author" content="SmartWiki" />
    <link rel="shortcut icon" href="<?php echo e(asset('favicon.ico')); ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="renderer" content="webkit" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php echo $__env->yieldContent('title'); ?> - <?php echo e(wiki_config('SITE_NAME','SmartWiki')); ?></title>

    <!-- Bootstrap -->
    <link href="<?php echo e(asset('static/bootstrap/css/bootstrap.min.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('static/font-awesome/css/font-awesome.min.css')); ?>" rel="stylesheet">

    <link href="<?php echo e(asset('static/styles/styles.css')); ?>" rel="stylesheet">
    <?php echo $__env->yieldContent('styles'); ?>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="<?php echo e(asset('static/bootstrap/js/html5shiv.min.js')); ?>"></script>
    <script src="<?php echo e(asset('static/bootstrap/js/respond.min.js')); ?>"></script>
    <![endif]-->
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="<?php echo e(asset('static/scripts/jquery.min.js')); ?>"></script>
</head>
<body>
<div class="manual-reader">
    <header class="navbar navbar-static-top smart-nav navbar-fixed-top" role="banner">
        <div class="container">
            <div class="navbar-header">
                <a href="<?php echo e(route('home.index')); ?>" class="navbar-brand"> <?php echo e(wiki_config('SITE_NAME','SmartWiki')); ?></a>
                <div class="searchbar pull-left visible-lg-inline-block visible-md-inline-block">
                    <form class="form-inline" action="<?php echo e(route('search.search')); ?>" method="get">
                        <input class="form-control" name="keyword" type="search" placeholder="请输入关键词...">
                        <button class="search-btn">
                            <i class="fa fa-search"></i>
                        </button>
                    </form>
                </div>
                <?php echo $__env->make('widget.usermenu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            </div>

            <nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
                <ul class="nav navbar-nav navbar-right">
                    <?php if(isset($member) && ($member->group_level == 0 || $member->group_level == 1)): ?>
                        <li>
                            <a href="<?php echo e(route('project.edit')); ?>" title="创建项目"><i class="fa fa-plus"></i></a>
                        </li>
                    <?php endif; ?>
                    <?php if(isset($member)): ?>
                        <li>
                            <a href="<?php echo e(route('account.logout')); ?>" title="退出登录">
                                <i class="fa fa-sign-out"></i>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo e(route('member.projects')); ?>" class="img" title="个人中心">
                                <img src="<?php echo e($member['headimgurl']); ?>" class="img-circle" style="width: 43px;">
                            </a>
                        </li>
                    <?php else: ?>
                        <li>
                            <a href="<?php echo e(route('account.login')); ?>" title="用户登录">登录</a>
                        </li>
                        <?php if(wiki_config("ENABLED_REGISTER")): ?>
                            <li>
                                <a href="<?php echo e(route('account.register')); ?>" title="用户登录">注册</a>
                            </li>
                        <?php endif; ?>
                    <?php endif; ?>
                </ul>
            </nav>
        </div>
    </header>
<?php echo $__env->yieldContent('content'); ?>
<?php echo $__env->make('widget.footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php echo $__env->yieldContent('modelDialog'); ?>
</div>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="<?php echo e(asset('static/bootstrap/js/bootstrap.min.js')); ?>" type="text/javascript"></script>
<script src="<?php echo e(asset('static/scripts/scripts.js')); ?>" type="text/javascript"></script>
<?php echo $__env->yieldContent('scripts'); ?>
</body>
</html>